package com.diors.commons.network.module.model;

import com.diors.commons.network.module.Resolve.BuffType;

/**
 * 命令信息Model
 * @author	darren.ouyang
 * @data	2013-9-11
 */
public class CommandInfoModel 
{
	
	private String type;
	
	private BuffType typeId;
	
	private int size;
	
	private String name;

	/**
	 * 
	 */
	private CommandInfoModel[] commandList;
	
	/**
	 * 
	 * @param name
	 * @param type
	 * @param size
	 * @create	2013-9-11	darren.ouyang
	 */
	public CommandInfoModel(String name,String type,int size)
	{
		this.name = name;
		this.type = type;
		this.typeId = BuffType.getType(type);
		this.size = size;
	}
	
	/**
	 * 
	 * @param name
	 * @param type
	 * @param size
	 * @param commandList
	 * @create	2013-9-11	darren.ouyang
	 */
	public CommandInfoModel(String name,String type,int size,CommandInfoModel[] commandList)
	{
		this.name = name;
		this.type = type;
		this.typeId = BuffType.getType(type);
		this.size = size;
		this.commandList = commandList;
	}

	public String getType() {
		return type;
	}

	public BuffType getTypeId() {
		return typeId;
	}

	public int getSize() {
		return size;
	}

	public String getName() {
		return name;
	}

	public CommandInfoModel[] getCommandList() {
		return commandList;
	}
}
